void add_point(vector &p)
void add_point(float x,float y,float z)
Parameter | Type | Description |
---|---|---|
p | vector& | point to add |
x | float | x coord. of point to add |
y | float | y coord. of point to add |
z | float | z coord. of point to add |
None
This method enlarges the bounding box in order for it to contain the specified
point.
When creating a bounbox for a mesh, call the reset method and loop
calling this function with all mesh vertices.